package com.Algorithm.Study.map;

import java.util.HashMap;
import java.util.HashSet;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/26/8:43
 * @Description:
 * @Target: 图
 */
public class Graph {
    public HashMap<Integer,Node> nodes;  // 点集  --- 城市的编号对应城市的点--->编号由边的from,点的in都一样
                                                    // 同样的边的to, 点的out都有着对应的城市编号
    public HashSet<Edge> edges; // 边集

    public Graph() {
        nodes = new HashMap<>();
        edges = new HashSet<>();
    }
}
